﻿using UnityEngine;

namespace UFrame
{
    /// <summary>
    /// 控制游戏速度
    /// </summary>
    public class GameSpeedMB : MonoBehaviour
    {
        [Range(0, 4)] public float speed = 1f;

        private void FixedUpdate()
        {
        }

        public void ApplySpeed()
        {
            Time.timeScale = speed;
        }
    }
}